﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using sipfe.service.menu;
using sipfe.Controllers.Base;
using sipfe.model.dataAccess;
using sipfe.util;

namespace sipfe.Controllers.bandeja
{
    public class BandejaController : BaseSipfeController
    {
        public ActionResult bandejaCab()
        {
            var menu_items = System.Web.HttpContext.Current.Session["MENU_ITEMS"];
            if (menu_items == null)
            {
                FormaMenuService menu = new FormaMenuService();
                menu_items = new HtmlString(string.Format("<script>{0}</script>", menu.getMenuByPerfil(Session[Constante.N_IDE_PERFIL].ToString())));
                System.Web.HttpContext.Current.Session["MENU_ITEMS"] = menu_items;               
            }
           return View();
        }
    }
}
